<%-- 
    Document   : HomeContent
    Created on : Aug 28, 2011, 12:22:19 PM
    Author     : NHAnh - nhanh@fit.hcmus.edu.vn
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<form name="frmDangNhap" action="LoginController" method="post">
    <table width="100%" border="1">
        <tr>
            <td colspan="2" align="center">ĐĂNG NHẬP</td>
        </tr>
        <tr>
            <td width="30%">Tên đăng nhập</td>
            <td><label for="tenDangNhap"></label>
                <input type="text" name="tenDangNhap" id="tenDangNhap" 
                       <%
                           if (request.getParameter("tenDangNhap") != null) {
                       %>
                       value="<%=request.getParameter("tenDangNhap")%>"
                       <%}%>                       />
            </td>
        </tr>
        <tr>
            <td>Mật khẩu</td>
            <td><label for="matKhau"></label>
                <input type="password" name="matKhau" id="matKhau"                  />
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
                <input type="submit" name="dangNhap" id="dangNhap" value="Đăng nhập" />
                <input type="hidden" name="Action" value="Login"/>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
                <%
                    if (request.getAttribute("Error") != null) {
                        out.println(request.getAttribute("Error"));
                    }
                %>

            </td>
        </tr>
    </table>
</form>
